const express = require("express");

const app = express();

// 路径匹配的中间件
app.use("/home", (req, res, next) => {
  console.log("注册路径中间件 01");
  next();
});

app.use("/home", (req, res, next) => {
  console.log("注册路径中间件 02");
  res.end();
});

app.listen(8000, () => {
  console.log("普通中间件服务器启动成功~~~");
});
